security {

  // see DefaultSecurityConfig.groovy for all settable/overridable properties

  active = true

  loginUserDomainClass = "meow.Account"
  authorityDomainClass = "meow.Authority"
  useRequestMapDomainClass = false

  requestMapString = """
    CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
    PATTERN_TYPE_APACHE_ANT

    /login/**=IS_AUTHENTICATED_ANONYMOUSLY
    /register/**=IS_AUTHENTICATED_ANONYMOUSLY
    /status/**=ROLE_USER
    /replies/**=ROLE_USER
    /account/index=IS_AUTHENTICATED_ANONYMOUSLY
    /account/list=IS_AUTHENTICATED_ANONYMOUSLY
    /account/**=ROLE_USER
    /**=IS_AUTHENTICATED_ANONYMOUSLY
"""
}
